<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../vue.js"></script>
    <style>
        .red{
            color: red;
        }
    </style>
    <script>
        window.onload=function () {
            new Vue({
                el:'#box',
                data: {
                    red:'red'
                },
                methods:{
                }
            });
        };
    </script>
</head>
<body>

<div id="box">
    <!--class内的red是数据-->
    <strong :class="[red]">文字...</strong>
</div>
</body>
</html>